<template>
  <div >
    <button @click="isShow=!isShow">显示/隐藏</button>
    <!-- 同时应用多个元素动画 -->
    <transition-group 
      appear
      name="animate__animated animate__bounce"
      enter-active-class="animate__fadeInDown"
      leave-active-class="animate__fadeOut"
    >
      <h3 v-show="isShow" class="demo" key="2"> Animate   !!!</h3>
    </transition-group>
  </div>
</template>

<script>
import 'animate.css';

export default {
  name:'Hello',
  data() {
    return {
      msg:'hello ',
      isShow:true
    }
  },
}
</script>

<style>
  .demo {
    background-color: cadetblue;
    height: 90px;
  }
</style>